// 查找 100 以内的素数
#include <stdio.h>
#include <stdbool.h>

bool isPrime(int number) {
    if (number <= 1) return false;
    for (int i = 2; i * i <= number; ++i) {
        if (number % i == 0) return false;
    }
    return true;
}

int main() {
    printf("Prime numbers up to 100 are: ");
    for (int i = 2; i <= 100; ++i) {
        if (isPrime(i)) printf("%d ", i);
    }
    printf("\n");
    return 0;
}